package com.basics.channel.service;

import com.basics.channel.entity.CyChannelRule;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 帖子屏蔽规则 服务类
 * </p>
 *
 * @author WangWei
 * @since 2025-03-09
 */
public interface CyChannelRuleService extends IService<CyChannelRule> {

    /**
     * 根据频道ID获取帖子屏蔽规则
     * @param channelId
     * @return
     */
    CyChannelRule getByChannelId(Long channelId);

    /**
     * 校验频道内容是否合乎规则
     * @param content
     * @param imageUrls
     * @param channelId
     */
    void checkContentRule(String content,String imageUrls,Long channelId);
}
